//
//  TIMStorageModel.h
//  Demo_TIM
//
//  Created by Deli Xia on 2018/5/29.
//  Copyright © 2018年 Deli Xia. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TIMCommon.h"

@interface TIMUserInfo : NSObject
/// 用户ID
@property (nonatomic, copy) NSString *userID;
/// 用户名
@property (nonatomic, copy) NSString *username;
/// 昵称
@property (nonatomic, copy) NSString *nikeName;
/// 头像URL
@property (nonatomic, copy) NSString *avatarURL;
/// 头像Path
@property (nonatomic, copy) NSString *avatarPath;
/// 入群时间
@property (nonatomic, copy, readonly) NSDate *jointime;
/// 备注名
@property (nonatomic, copy) NSString *remarkName;
// 简介
@property (nonatomic, copy, readonly) NSString *persionalnote;
// 手机号
@property (nonatomic, copy) NSString *mobile;
// 职称等级
@property (nonatomic, copy, readonly) NSString *level;
// 职称等级
@property (nonatomic, strong, readonly) NSString *version;// 版本控制，仅在自己属性保存
/// 是否好友关系
@property (nonatomic, assign, readonly) NSInteger userIsFriend;
/// 是否管理员
@property (nonatomic, assign, readonly) NSInteger userIsAdmin;
/// 界面显示名称
@property (nonatomic, copy, readonly) NSString *showName;
//
@property (nonatomic, copy, readonly) NSString *showGroupName;

/**
 *  消息免打扰 默认YES, 设置NO则收不到通知
 */
@property (nonatomic, strong) NSString *disturb;

@property (nonatomic, assign) BOOL isSelect;

// 朋友
@property (nonatomic, copy) NSString *unRead;
@property (nonatomic, copy, readonly) NSDate *date;
@property (nonatomic, copy) NSString *status;
// 新朋友
@property (nonatomic, copy) NSString *remarkInfo;          //!< 备注信息

@property (nonatomic, copy) NSString *fileVersion;

@end

@interface TIMGroupInfo : NSObject

/**
 *  讨论组名称
 */
@property (nonatomic, copy) NSString *groupName;


@property (nonatomic, copy, readonly) NSString *groupAvatarPath;

/**
 *  讨论组ID
 */
@property (nonatomic, copy) NSString *groupID;
/**
 *  讨论组拥有者
 */
@property (nonatomic, copy, readonly) NSString *groupOwner;
/**
 *  讨论组成员
 */
@property (nonatomic, copy, readonly) NSMutableArray *users;
@property (nonatomic, assign, readonly) NSInteger usersCount;

/**
 *  群公告
 */
@property (nonatomic, copy) NSArray *groupAnnounceList;
@property (nonatomic, copy) NSMutableDictionary *grpAnnounce;
@property (nonatomic, copy) NSString *grpAnnounceContent;
@property (nonatomic, copy) NSString *grpAnnounceUid;
@property (nonatomic, copy) NSString *grpAnnounceTime;
/**
 *  我的群昵称
 */
@property (nonatomic, copy) NSString *myNikeName;
/**
 *  群禁言
 */
@property (nonatomic, assign) BOOL stop_talk;
/**
 *  群是否仅允许管理员和群组添加群成员  YES开启 NO未开启
 */
@property (nonatomic, copy) NSString *group_offer_flag;
/**
 *  消息免打扰 默认YES, 设置NO则收不到通知
 */
@property (nonatomic, copy) NSString *disturb;

/**
 *  群邀请确认，默认是nil， 设置YES则要确认
 */
@property (nonatomic, copy) NSString *offerIsNeedAck;

/**
 *  群踢人是否显示，默认是nil， 设置YES则要显示
 */
@property (nonatomic, copy) NSString *kickOffIsDisplay;

@property (nonatomic, assign, readonly) NSInteger count;

@property (nonatomic, assign, readonly) BOOL showNameInChat;

// 邀请人信息
@property (nonatomic, strong) NSString *inviterID;
@property (nonatomic, strong) NSArray *invitedIDs;
@property (nonatomic, strong) NSArray *acceptedIDs;
@property (nonatomic, assign) NSInteger inviteCount;
@property (nonatomic, strong) NSString *inviteMessageKey;
@property (nonatomic, strong) NSString *inviteRemarks;
@property (nonatomic, strong) NSString *inviteAuditAckKey;

@end

@interface TIMConversationInfo : NSObject

/**
 *  会话类型（个人，讨论组，企业号）
 */
@property (nonatomic, assign, readonly) TIMConversationType convType;

/**
 *  消息提醒类型
 */
@property (nonatomic, assign, readonly) TIMMessageRemindType remindType;

/**
 *  用户ID
 */
@property (nonatomic, copy) NSString *partnerID;

/**
 *  用户名
 */
@property (nonatomic, copy, readonly) NSString *partnerName;

/**
 *  头像地址（本地）
 */
@property (nonatomic, copy) NSString *avatarPath;

/**
 *  时间
 */
@property (nonatomic, copy, readonly) NSDate *date;
/**
 *  群成员个数
 */
@property (nonatomic, assign, readonly) NSInteger groupUserCount;
/**
 *  消息展示内容
 */
@property (nonatomic, copy) NSString *content;
/**
 *  消息globalID
 */
@property (nonatomic, assign, readonly) NSInteger globalID;
/**
 *  发送者ID
 */
@property (nonatomic, copy, readonly) NSString *friendID;
/**
 *  消息类型
 */
@property (nonatomic, assign, readonly) NSInteger msgType;

/**
 *  提示红点类型
 */
@property (nonatomic, assign) TIMClueType clueType;


@property (nonatomic, assign) BOOL isRead;

/**
 *  消息未读数量
 */
@property (nonatomic, assign) NSInteger unreadCount;

///**
// *  待邀请消息未读数量
// */
//@property (nonatomic, assign) NSInteger unreadInviteCount;
//
///**
// *  公告未读数量
// */
//@property (nonatomic, assign) NSInteger unreadAunCount;

/**
 *  消息置顶
 */
@property (nonatomic, strong) NSMutableDictionary *stickDict;
@property (nonatomic, strong) NSString *stickState; // 是否置顶
@property (nonatomic, strong) NSString *stickTime; // 置顶时间
/**
 *  消息免打扰
 */
@property (nonatomic, strong) NSString *disturb;
/**
 *  消息阅后即焚
 */
@property (nonatomic, strong) NSString *afterRea;


// 最后一条消息是否显示自定义的  @“YES”代表显示 
@property (nonatomic, strong) NSString *isShowCustomContent;


- (void)updateUserInfo:(TIMUserInfo *)user;

- (void)updateGroupInfo:(TIMGroupInfo *)group;

@end

@interface TIMGroupFileInfo : NSObject

@property (nonatomic, copy) NSString *groupId;

@property (nonatomic, copy) NSString *fileID;

@property (nonatomic, copy) NSString *fileName;

@property (nonatomic, copy) NSString *fileType;

@property (nonatomic, copy) NSString *fileSize;

@property (nonatomic, copy) NSString *fileStatus;

@property (nonatomic, copy) NSString *fileCreateTime;

@property (nonatomic, copy) NSString *uploader;

@property (nonatomic, copy) NSString *downloads;

@end

@interface TIMStorageModel : NSObject


@end
